let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n156,
                    i =
                    (this && this.__extends) ||
                    ((_n156 = function n(t, e) {
                            return (_n156 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n156(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                    value: !0
                });
                var r = t('BattleInfo'),
                    a = t('SoldierCfg'),
                    s = t('CivilizationMrg'),
                    c = t('MilitaryMrg'),
                    l = (function(t) {
                        function e(e) {
                            var o = t.call(this) || this;
                            return o.init(a.SoldierCfg.ins.getData(e)), o;
                        }
                        return (
                            i(e, t),
                            (e.prototype.build = function() {
                                (this._hp = this.getCfgData('hp')),
                                (this._atk = this.getCfgData('atk')),
                                (this._def = this.getCfgData('def')),
                                (this._crit = this.getCfgData('crit')),
                                (this._solid = this.getCfgData('solid'));
                                var t = this.getCfgData('hpPer'),
                                    e = this.getCfgData('atkPer'),
                                    o = this.getCfgData('defPer'),
                                    n = 0,
                                    i = 0;
                                (this._hp += s.CivilizationMrg.ins.hp),
                                (this._atk += s.CivilizationMrg.ins.atk),
                                (this._def += s.CivilizationMrg.ins.def),
                                (this._crit += s.CivilizationMrg.ins.crit),
                                (this._solid += s.CivilizationMrg.ins.solid),
                                (t += s.CivilizationMrg.ins.hpPer),
                                (e += s.CivilizationMrg.ins.atkPer),
                                (o += s.CivilizationMrg.ins.defPer);
                                var r = c.MilitaryMrg.ins.getAttrByType(this.type);
                                if (
                                    (r &&
                                        ((this._hp += r.hp),
                                            (this._atk += r.atk),
                                            (this._def += r.def),
                                            (this._crit += r.crit),
                                            (this._solid += r.solid),
                                            (t += r.hpPer),
                                            (e += r.atkPer),
                                            (o += r.defPer)),
                                        this._buff)
                                )
                                    for (var a = 0; a < this._buff.buffs.length; a++) {
                                        var l = this._buff.buffs[a];
                                        (this._hp += l.hp),
                                        (this._atk += l.atk),
                                        (this._def += l.def),
                                        (this._crit += l.crit),
                                        (this._solid += l.solid),
                                        (t += l.hpPer),
                                        (e += l.atkPer),
                                        (o += l.defPer),
                                        (n += l.critPer),
                                        (i += l.solidPer);
                                    }
                                    (this._hp = this._hpMax =
                                        Math.floor(this._hp * (1 + 0.01 * t))),
                                    (this._atk = Math.floor(this._atk * (1 + 0.01 * e))),
                                    (this._def = Math.floor(this._def * (1 + 0.01 * o))),
                                    (this._solid = Math.floor(this._solid * (1 + 0.01 * i))),
                                    (this._crit = Math.floor(this._crit * (1 + 0.01 * n)));
                            }),
                            e
                        );
                    })(r.BattleInfo);
                (o.default = l), console.log("end");
            module.exports =  e.exports;